package com.energy.analysis.basic.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.energy.analysis.basic.entity.StandData;
import com.energy.analysis.basic.mapper.StandMapper;
import com.energy.analysis.comm.base.BaseMapper;
import com.energy.analysis.comm.base.BaseService;

@Service
public class StandService extends BaseService<StandData> {

	@Autowired
	private StandMapper standMapper;
	
	@Override
	public BaseMapper<StandData> getMapper() {
		return standMapper;
	}
	
	public StandData getStandDataById(int id) {
		return standMapper.getStandDataById(id);
	}
	
	public List<StandData> getStandData() {
		return standMapper.getStandData();
	}
	
	public boolean updateStandData(StandData standData) {
		return standMapper.updateStandData(standData) > 0;
	}
	
}
